package org.mogu.service;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class InfoReceiver extends BroadcastReceiver {
//	private static final String ACTION = "Android.intent.action.BOOT_COMPLETED";

	
	public void onReceive(Context context,Intent intent){
			Intent i=new Intent(context,InfoService.class);
			i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startService(i);
			
			//sync();
			
//			Intent mBootIntent = new Intent(context, TMain.class); 
//	 		mBootIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
//	 		context.startActivity(mBootIntent);
	 		
			Log.e("TAG", "开机自动服务启动");
		
		
	
	}
	
}
